package com.eling.elcms.travel.dao;

import com.eling.elcms.core.dao.IGenericDao;
import com.eling.elcms.travel.model.WelfareConsumptionCoupon;
import com.eling.elcms.travel.model.view.WelfareConsumptionCouponStatisticsView;
import com.eling.elcms.travel.model.view.WelfareConsumptionCouponView;
import com.eling.elcms.travel.model.view.WelfareccView;

import java.util.Date;
import java.util.List;

public interface IWelfareConsumptionCouponDao extends IGenericDao<WelfareConsumptionCoupon, Long> {
	
	/**
	 * 查询待发放消费券的会员
	 * @param date
	 * @return
	 * @author ly
	 */
	List<WelfareConsumptionCouponView> queryWelfareCard(Date date);
	
	/**
	 * 根据条件的搜索
	 * @param value
	 * @return
	 * @author ly
	 */
	List<WelfareConsumptionCouponView> queryWelfareCardSerarch(String value);
	
	/**
	 * 根据条件的搜索
	 * @param value
	 * @return
	 * @author ly
	 */
	List<Long> queryWelfareCardSerarchGrid(String value,WelfareConsumptionCoupon cond,String endDate);
	
	/**
	 *  验证卡号是否已经被使用
	 * @return
	 * @author ly
	 */
	Integer queryWelfareCardAjax(String cardNo);

	List<Long> queryRule(WelfareConsumptionCoupon cond);

	List<WelfareccView> queryDetail(List<Long> pklist);

	List<WelfareConsumptionCouponStatisticsView> queryStatistics(Long pkTravelContract);
	
}
